/**
 * Created by chensk740 on 2018/1/9.
 */
import {Component, EventEmitter, Input, OnInit, Output , ViewEncapsulation } from '@angular/core';


@Component({
  selector: 'sharing-nav',
  templateUrl: './sharing-nav.component.html',
  styleUrls: ['./sharing-nav.component.scss'],
 encapsulation: ViewEncapsulation.None
})
export class SharingNavComponent implements OnInit {
  public activeItem= 0;
  @Input() sharingNav;
  @Output() navIndexclick: EventEmitter<string>= new EventEmitter<string>();
  constructor() {}


  changeItem(i , code) {
    this.activeItem = i;
    this.navIndexclick.emit(code);
  }
  ngOnInit() {

  }

}
